Skip to main content

NBSPlayer

A player for the NBS format.


Functions​

update​

NBSPlayer:update()

Plays a tick.


start​

NBSPlayer:start()

Starts the player


stop​

NBSPlayer:stop()

Stops the player


isPlaying​

NBSPlayer:isPlaying()

Returns true if the player is playing.

Returns:

  • [ boolean ] If it is playing or not.

getCurrentTick​

NBSPlayer:getCurrentTick()

Gets the current tick of the player

Returns:

  • [ number ] The current tick of the player.

isLooped​

NBSPlayer:isLooped()

If it would loop or not.

Returns:

  • [ boolean ] If it is looped or not.

setLooped​

NBSPlayer:setLooped( looped )

Sets it so it if should loop or not

Arguments:

  • [ boolean ] New looped state.